Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.platform.TemplateSources.contentView.contrib

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.platform.TemplateSources.contentView.contrib">

  <extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
    point="contentViews">

    <contentView name="TEMPLATE_USAGE">

      <title>label.template.usage</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM Document WHERE ecm:mixinType = 'TemplateBased' AND
          ecm:currentLifeCycleState != 'deleted' AND
          nxts:bindings/*/templateId IN ? AND ecm:isCheckedInVersion = ?
        </pattern>
        <parameter>#{templateActions.templateAndVersionsUUIDs}</parameter>
        <parameter>#{templateActions.checkedInVersion}</parameter>
        <sort column="dc:title" ascending="true" />
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <showFilterForm>false</showFilterForm>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{currentDocument.id}-#{templateActions.showVersions}</cacheKey>

      <resultLayouts>
        <layout name="document_listing_ajax" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png"
          showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" />
        <layout name="document_listing_ajax_compact_2_columns" title="document_listing_compact_2_columns"
          translateTitle="true" iconPath="/icons/document_listing_compact_2_columns_icon.png"
          showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" />
        <layout name="document_listing_ajax_icon_2_columns" title="document_listing_icon_2_columns"
          translateTitle="true" iconPath="/icons/document_listing_icon_2_columns_icon.png"
          showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" />
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CURRENT_SELECTION_LIST" />

    </contentView>
  </extension>
</component>